package com.zerdoor.dao;

import java.util.List;
import java.util.Map;

/**
 * 资金管理 持久层
 * Created by zhongjieyu on 2015/1/29.
 */
public interface FundManageDao {

    /**
     * 分页查询用户提现记录
     * @param param
     * @return
     * @throws Exception
     */
    List<Map> findUserWithdraw(Map param) throws Exception;

    /**
     * 根据提现记录ID修改提现记录状态
     * @param result
     * @throws Exception
     */
    void updateWithdrawStatus(Map<String, Object> result) throws Exception;

    /**
     * 根据提现记录ID查询提现记录信息
     * @param withdrawId
     * @return
     * @throws Exception
     */
    Map findWithdrawInfoById(int withdrawId) throws Exception;

    /**
     * 记录用户钱包日志
     * @param param 参数项：{user_id,money,type,wallet_status}
     * @throws Exception
     */
    void addUser_wallet(Map<String,Object> param) throws Exception;


    /**
     * 根据用户ID更新用户账户余额和冻结金额
     * @param param
     * @throws Exception
     */
    void updateUserWalletById(Map param) throws Exception;


    /**
     * 根据用户ID解冻用户冻结金额
     * @param param
     * @throws Exception
     */
    void updateThawFreezeMoneyByUserId(Map<String, Object> param) throws Exception;

}
